package com.yj.cmp.sdk.fusioncompute.compute.cluster;

import com.yj.cmp.sdk.fusioncompute.compute.cluster.vo.ClusterDetailVO;
import com.yj.cmp.sdk.fusioncompute.compute.cluster.vo.ClusterListVo;
import org.springframework.stereotype.Service;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.Path;

import java.util.Map;

/**
 * @author Harvey_Yang
 * @date 2021/8/30 8:55
 */
@Service
public interface FcClusterService {

    @GET("clusters")
    Call<ClusterListVo> clusterList(@HeaderMap Map<String, Object> headers);

    @GET("clusters/{clustersId}")
    Call<ClusterDetailVO> clusterDetail(@HeaderMap Map<String, Object> headers, @Path("clustersId") String clustersId);
}
